package office;

import cn.hutool.core.date.DateUtil;
import org.apache.commons.lang.StringUtils;

import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @Author: youdao.hww
 * @Date: 9/14/24
 * @Desc:
 */
public class OneTest {

    public static void main(String[] args) {

        }



    /**
     * 返回去重后的provideNo
     *
     * @param provideNo
     * @return
     */
    public static List<String> spiltProvideNo(String provideNo) {
        Pattern pattern = Pattern.compile("T\\d+");
        Matcher matcher = pattern.matcher(provideNo);
        Set<String> result = new HashSet<>();
        while (matcher.find()) {
            result.add(matcher.group());
        }
        return new ArrayList<>(result);
    }
}
